<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>标签详情</title>
<link rel="stylesheet" type="text/css"
	href="../static/js/themes/public.css">
<link rel="stylesheet" type="text/css"
	href="../static/js/themes/ddspstyle.css">
<link rel="stylesheet" type="text/css"
	href="../static/js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../static/js/themes/icon.css">
<script type="text/javascript" src="../static/js/jquery.min.js"></script>
<script type="text/javascript" src="../static/js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="../static/js/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../static/js/jquery.validate.js"></script>
<script type="text/javascript" src="../static/js/index.js"></script>
</head>
<%
String para =request.getParameter("parentid");
int f_label_id = 0;
if(para != null)
	f_label_id = Integer.valueOf(para);
%>
<body>
<div id="right" style="width: 100%; overflow: auto; float: right">
		<div id="container">
			<div class="editspace">
				<form id="contentForm" class="cmxform" enctype="multipart/form-data"
					name="formName">
					<legend>标签详情</legend>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="30%" align="right">
										父级标签ID：
									</td>
									<td width="70%">
										<font id="f_label_parentid" style="width: 150px;"></font> 
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="30%" align="right">
										标签ID：
									</td>
									<td width="70%">
										<font id="f_label_id" style="width: 150px;"></font> 
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="30%" align="right">
										标签名称：
									</td>
									<td width="70%">
										<font id="f_label_name" style="width: 150px;"></font> 
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="30%" align="right">
										标签状态：
									</td>
									<td width="70%">
										<font id="f_label_status" style="width: 150px;"/>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="30%" align="right">
										标签描述：
									</td>
									<td width="70%">
										<font cols="20" rows="4" style="resize:none; width:150px;" id="f_label_desc">
										</font>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
				</form>
			</div>
		</div>
	</div> 
</body>
<script type="text/javascript">

window.onload=function(){
	var f_label_id = <%=f_label_id%>;
	$.ajax({
		url:"select_label.do?f_label_id="+f_label_id,
		success:function(data){
			data=JSON.parse(data);
			$("#f_label_id").html(data.f_label_id);
			$("#f_label_parentid").html(data.f_label_parentid);
			$("#f_label_name").html(data.f_label_name);
			$("#f_label_desc").html(data.f_label_desc);
			$("#f_label_status").html(data.f_label_status==1?"有效":"无效");
		}
	});
	
}
</script>
</html>